//
//  XYLLocationAnnotationView.h
//  XYLBaiduMap2017
//
//  Created by 夏玉林 on 17/2/16.
//  Copyright © 2017年 夏玉林. All rights reserved.
//

// 引入地图功能所有的头文件
#import <BaiduMapAPI_Map/BMKMapComponent.h>
#import <UIKit/UIKit.h>
#import "BaseModel.h"
//typedef void (^blockType)(NSInteger index);
typedef void (^blockType)(UIButton *btn);

@interface XYLLocationAnnotationView : BMKAnnotationView

//@property (nonatomic,copy)blockType block;

@property (nonatomic,copy)blockType block;

//大头针下标
@property (nonatomic,assign) NSInteger index;
@property (nonatomic, strong)UIButton *clickBtnAnnotaionView;

// default is same as MKUserLocationView
@property (nonatomic, strong) UIColor *annotationColor;
// default is white
@property (nonatomic, strong) UIColor *outerColor;

@property (nonatomic, readwrite) NSTimeInterval pulseAnimationDuration; // default is 1s

@property (nonatomic, readwrite) NSTimeInterval delayBetweenPulseCycles; // default is 1s

//!头像的背景图片
@property (nonatomic, strong) UIImage *backImage;
//!头像图片View
@property (nonatomic, strong) UIImageView *headerImageView;

//添加泡泡
- (UIView *)setupItemAnnotationIsCanViewtitle:(NSString *)title subtitle:(NSString *)subtitle;

@end
